package com.home.Entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="MUATHIETBI")
public class MuaThietBi {

	@Id
	@Column(name="MTB_MASO")
	private long maSo;
	@Column(name="MTB_NGAYMUA")
	private Date ngayMua;
	@Column(name="MTB_SOLUONG")
	private int soLuong;
	@Column(name="MTB_DONGIA")
	private BigDecimal donGia;
	@Column(name="MTB_GHICHU")
	private String ghiChu;
	@ManyToOne
	@JoinColumn(name = "MTB_THIETBI")
	private ThietBi thietBi;
	
	
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Date getNgayMua() {
		return ngayMua;
	}
	public void setNgayMua(Date ngayMua) {
		this.ngayMua = ngayMua;
	}
	public int getSoLuong() {
		return soLuong;
	}
	public void setSoLuong(int soLuong) {
		this.soLuong = soLuong;
	}
	public BigDecimal getDonGia() {
		return donGia;
	}
	public void setDonGia(BigDecimal donGia) {
		this.donGia = donGia;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public ThietBi getThietBi() {
		return thietBi;
	}
	public void setThietBi(ThietBi thietBi) {
		this.thietBi = thietBi;
	}	
	
}
